// #ifndef VUE3
import Vue from 'vue'
import App from './App'


// 导入 store 的实例对象
import store from 'store/index.js'
// 导入 http
import http from 'utils/http/index.js'
import wxCloud from 'utils/https/wxCloud.js'
import https from 'utils/https/index.js'
// 导入showMsg
import showMsg from 'utils/showMsg/index.js'
// 导入全局常量
import code from "utils/code/index.js"
import path from 'utils/staticPath/index.js'
// 导入api包
import api from 'api/index.js'
import compareVersion from 'utils/versionCompare/index.js'


// 全局配置
// uni.$http = http
// uni.$http = wxCloud
uni.$http = https

// uni.$uploadPath = path.uploadPathHttp
// uni.$uploadPath = path.uploadPathWxCloud
uni.$uploadPath = path.uploadPathHttps

// uni.$downloadPath = path.downloadPathHttp
uni.$downloadPath = path.downloadPathHttps

// uni.$staticResourcePath = path.staticResourcePathHttp
uni.$staticResourcePath = path.staticResourcePathHttps

uni.$showMsg = showMsg
uni.$compareVersion = compareVersion
uni.$api = api
uni.$store = store
uni.$code = code

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App,

	// 挂载store
	store,

})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif